FROM tomcat:7

#软件源(替换为国内源)
#ADD sources.list /etc/apt/

#打包编译后源码
ADD src/ROOT /usr/local/tomcat/webapps/ROOT
ADD src/wda /usr/local/tomcat/webapps/wda

#安装Apache_OpenOffice（需自行下载解压至同级目录）
ADD zh-CN /Apache_OpenOffice
RUN dpkg -i /Apache_OpenOffice/DEBS/*.deb
RUN dpkg -i /Apache_OpenOffice/DEBS/desktop-integration/*.deb
RUN rm -rf /Apache_OpenOffice

#安装Apache_OpenOffice组件（需自行下载解压至同级目录）
RUN apt-get update
RUN apt-get install -y net-tools
RUN apt-get install -y libxext-dev --force-yes --assume-yes apt-utils
RUN apt-get install -y xvfb --force-yes --assume-yes apt-utils

RUN apt-get clean all
RUN apt-get -y autoremove 

#tomcat7启动扫描jar包慢
#RUN mv /usr/local/tomcat/conf/catalina.properties /usr/local/tomcat/conf/catalina.properties_bak
#ADD catalina.properties /usr/local/tomcat/conf/
